#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    connect(ui->pushButton_show, SIGNAL(clicked()), this, SLOT(on_pushButton_show_clicked()));
    connect(ui->pushButton_clear, SIGNAL(clicked()), this, SLOT(on_pushButton_clear_clicked()));
}

MainWindow::~MainWindow()
{
    delete ui;
}


void MainWindow::on_pushButton_show_clicked()
{
    ui->label->setText("Hello World!");
}

void MainWindow::on_pushButton_clear_clicked()
{
    ui->label->clear();
}

